/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jmenu.main;

import java.awt.Color;
import java.awt.Component;
import java.awt.Font;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;

/**
 *
 * @author Roman
 */
public class MyDefaultTableHeaderRenderer extends DefaultTableCellRenderer
{

    @Override
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,boolean hasFocus, int row, int column)
        {
            Component label;
            label = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
            
            label.setFont(new Font("Helvetica Bold", Font.BOLD,14));
            //label.setBackground(Color.GREEN);
            label.setForeground(Color.BLACK);
            
            //if(isSelected){label.setForeground(Color.ORANGE);}else{label.setForeground(Color.BLACK);}
           
            return label;
        }

}
